﻿@model MsForgeReboot.Web.Models.RegisterModel
@{
    ViewBag.Title = "Register";
}

<hgroup class="title">
    <h1>@ViewBag.Title.</h1>
    <h2>Create a new account.</h2>
</hgroup>

@using (Html.BeginForm("Register", "Account", FormMethod.Post, new { @class = "form-horizontal" }))
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary()
    <div class="control-group">
        @Html.LabelFor(m => m.PublicName, new { @class = "control-label" })
        <div class="controls">
            @Html.TextBoxFor(m => m.PublicName)
        </div>
    </div>
    <div class="control-group">
        @Html.LabelFor(m => m.UserName, new { @class = "control-label" })
        <div class="controls">
            @Html.EditorFor(m => m.UserName)
            @Html.ValidationMessageFor(model => model.UserName)
        </div>
    </div>
    <div class="control-group">
        @Html.LabelFor(m => m.Password, new { @class = "control-label" })
        <div class="controls">
            @Html.PasswordFor(m => m.Password)
        </div>
    </div>
    <div class="control-group">
        @Html.LabelFor(m => m.ConfirmPassword, new { @class = "control-label" })
        <div class="controls">
            @Html.PasswordFor(m => m.ConfirmPassword)
        </div>
        <div class="control-group">
            @Html.LabelFor(m => m.Notifications, new { @class = "control-label" })
            <div class="controls">
                @Html.CheckBoxFor(m => m.Notifications)
            </div>
        </div>
        <div class="control-group">
            <div class="controls">
                <button class="btn btn-success">Registrujte se <i class="icon-user"></i></button>
            </div>
        </div>
    </div>
}

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
